home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / May 90 / MacApp.Tech$ 5⁄4⁄90 / 1247-Re What needs to be -May90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.7 KB  |  39 lines  |  [TEXT/GEOL]

  1. Item    1487381                         3-May-90        19:13DST
  2.  
  3. From:   UK0392                          EHN & DIJ Oakley,IDV
  4.  
  5. To:     V0683                           Amoco Tech, Eric Berdahl,VAR
  6.  
  7. cc:     MACAPP.TECH$                    MacApp Technical
  8.  
  9. Sub:    Re What needs to be in Main
  10.  
  11. Eric,
  12.  
  13. How much has to go into Main depends very much on how much space there is in
  14. the segment!
  15. I had problems with this when I went from MacApp 1.1.1 to 2.0bx, in that (in
  16. debug versions especially) there was a lot more mapped to Main.  In bigger
  17. applications, I found that I simply had to have several resident segments of my
  18. own, and thus moved a lot of my essential resident methods into them.  I also
  19. found that, as debug versions have more to go into Main from both MacApp and
  20. your own code, I built debug versions with the ARes-destined methods mapped to
  21. their own segment rather than Main (simply commenting out the OtherSegMappings
  22. line in MAMake is an easy way of doing this temporarily).
  23. What is clearly important is that you don't move much of the MacApp stuff out
  24. of Main - although you would get away with much of it, I am not aware that you
  25. should ever *need* to, and it could get very messy.
  26. So, in summary, what I do now is put my essential resident methods into ARes,
  27. which is then mapped onto Main using the MAMake lines
  28. OtherSegMappings = ∂
  29.    -sn PrintRes=ANonRes ∂
  30.    -sn ARes=Main
  31. until Main is full.  Then, the less essentially resident (i.e. more seldom used
  32. and less time & space critical) go into another resident segment, and so on.
  33. The examples are a fair guide as to which you want to try to get into Main, and
  34. as ever I tend to follow them blindly at first, and with increasing insight as
  35. I understand more!
  36.  
  37. Regards, Howard.
  38.  
  39.